import org.jsoup.Jsoup;

import javax.imageio.IIOException;
import javax.swing.*;
import java.io.IOException;

public class Demo1 {
    public static void main(String[] args) throws IOException {
     String a=JOptionPane.showInputDialog("请输入词汇");
     String c="http://www.youdao.com/w/eng/"+a+"/#keyfrom=dict2.index";
    String u= Jsoup.connect(c).get().select("div[class=trans-container]").get(0).text();
    JOptionPane.showMessageDialog(null,u);
    }
}
